import { Browser, BrowserHrm } from 'weaver-mobile-page'
import { Tools } from 'weaver-mobile'
import { observable, action } from 'mobx'

const getLabel = Tools.getLabel

export default class TaskMainAdvancedSearchStore {

    @observable 
    taskMainHrmPrincipalBrowserStore = new BrowserHrm.Store({ route: '/taskHome/taskMain/advancedSearch' })

    @observable 
    taskMainHrmSubordinateBrowserStore = new BrowserHrm.Store({ route: '/taskHome/taskMain/advancedSearch' })

    @observable 
    taskMainTagBrowserStore = new Browser.Store({ route: '/taskHome/taskMain/advancedSearch' })

    @observable
    urgentLevelOptions = [
        {
            key: "0",
            showname: getLabel(15808, '未设置')
        },{
            key: "1",
            showname: getLabel(382501, '重要紧急')
        },{
            key: "2",
            showname: getLabel(382502, '重要不紧急')
        },{
            key: "3",
            showname: getLabel(382503, '不重要紧急') 
        },{
            key: "4",
            showname: getLabel(382504, '不重要不紧急')
        }
    ]

    @observable
    orderbyFieldOptions = [
        {
            key: "",
            showname: getLabel(19520 ,'最后修改时间')
        },{
            key: "enddate",
            showname: getLabel(741,'结束日期')
        },{
            key: "begindate",
            showname: getLabel(740,'开始日期')
        },{
            key: "principalid",
            showname: getLabel(16936,'责任人')
        }
    ]

    @observable
    orderbyTypeOptions = [
        {
            key: "asc",
            showname: getLabel(339,'升序')
        },{
            key: "desc",
            showname: getLabel(340,'降序')
        }
    ]
    
}